<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td class="border2">
            <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td class="block_header">{language text="browse_events"}</td>
                </tr>
            </table>
            <form method="post" action="{url link='current'}" name="frm">
                <table width="100%" cellpadding="5" class="">
                    <tr>
                        <td width="33%" style="vertical-align:top;font-size:9pt;">
                            {language text="category_145"}:
                            <div style="padding:4px;">
                            {filter data=$aFilter.type style="width:150px;" any="option.select"}
                            </div>
                        </td>
                        <td width="33%" style="vertical-align:top;font-size:9pt;">
                            {language text="keywords"}:
                            <div style="padding:4px;">
                            {filter data=$aFilter.title style="width:150px;"}
                            </div>
                        </td>
                        <td width="33%" style="vertical-align:top;font-size:9pt;">
                            {language text="city"}:
                            <div style="padding:4px;">
                            {filter data=$aFilter.city style="width:150px;"}
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td width="33%" style="vertical-align:top;font-size:9pt;">
                            {language text="location"}:
                            <div style="padding:4px;">
                            {if getParam('us_states')}
                            {filter data=$aFilter.country style="width:150px;" onchange="checkUsMode(true);" id="fldCountrySel"}
                            {else}
                            {filter data=$aFilter.country style="width:150px;" id="fldCountrySel"}
                            {/if}
                            </div>
                        </td>
                        <td width="33%" style="vertical-align:top;font-size:9pt;">
                        	{if $bZipState}
                            {language text="state"}:
                            <div style="padding:4px;">
                            {filter data=$aFilter.state style="width:150px;" id="fldStateSel"}
                            </div>
							{/if}
                        </td>
                        <td width="33%" style="vertical-align:top;font-size:9pt;">
                            {if $bZipState}
                            {language text="postal_code"}:
                            <div style="padding:4px;">
                            {filter data=$aFilter.zip style="width:60px;" id="zip" maxlength="5" id="fldZip"}
                            </div>
                            {/if}
                        </td>
                    </tr>
                    <tr>
                        <td width="100%" colspan="3" style="text-align:right;vertical-align:middle;font-size:9pt;">
                            <input type="submit" name="act[browseevent_show]" value="   {language text="find"}   " class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />&nbsp;
                            <input type="submit" name="act[browseevent_reset]" value="  {language text="reset"}  " class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />
                        </td>
                    </tr>
                </table>
            </form>
        </td>
    </tr>
</table>


<br />
{include file="$sRootPath/_blocks/pager_nav_button.html"}
<br />

<table style="width:100%;" cellpadding="5" class="border2">
<tr>
    <td style="width:10%;vertical-align:top;font-size:9pt;" class="mainmenu5">{language text="date"}</td>
    <td style="width:10%;vertical-align:top;font-size:9pt;" class="mainmenu5">{language text="time"}</td>
    <td style="width:40%;vertical-align:top;font-size:9pt;" class="mainmenu5">{language text="event_amp_description"}</td>
    <td style="width:20%;vertical-align:top;font-size:9pt;" class="mainmenu5">{language text="category_145"}</td>
    <td style="width:20%;vertical-align:top;font-size:9pt;" class="mainmenu5">{language text="place_amp_location"}</td>
</tr>
{foreach from=$aItems item=aItem name=aitems key=key}
<tr class="{if $key % 2 == 0}border13{/if}">
<td style="width:10%;vertical-align:top;font-size:9pt;" class="color">
{$aItem.time|date_format:$sDateFormat}
</td>
<td style="width:10%;vertical-align:top;font-size:9pt;" class="color">
{$aItem.start_time}
</td>
<td style="width:40%;vertical-align:top;font-size:9pt;" class="color">
<a href="{url link='public.event.view' id=$aItem.id foxseotitle=$aItem.title}">{$aItem.title|escape}</a>
<div style="font-size:8pt;">{$aItem.short|escape}</div>
</td>
<td style="width:20%;vertical-align:top;font-size:9pt;" class="color">
{$aItem.type}
</td>
<td style="width:20%;vertical-align:top;font-size:8pt;" class="color">
{if $aItem.country == 'United States'}
{$aItem.city|escape}, {$aItem.state|escape} (USA)
{else}
{$aItem.city|escape}, {$aItem.country|escape}
{/if}
</td>
</tr>
{foreachelse}
<tr>
<td colspan="5">
<div class="message_info">{language text="no_events_found"}</div>
</td>
</tr>
{/foreach}
</table>

<br />
{include file="$sRootPath/_blocks/pager_nav_button.html"}

<br />
{if getParam('us_states')}<script type="text/javascript">checkUsMode(true);</script>{/if}